.ajax-file-input {
    position: static;
}

.ajax-file-input__image-preview {
    height: 120px;
    width: 100px;
    padding: 10px 0;
    position: relative;
    display: inline-block;

    img {
        max-height: 100%;
        max-width: 100%;
        border-radius: 10px;
    }

    &:hover {
        .ajax-file-input__remove {
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
    }
}

.ajax-file-input__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ajax-file-input__cropper-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    background-color: rgba(0, 0, 0, 0.8);
}

.ajax-file-input__cropper-content {
    width: 600px;
    margin: auto;
    max-height: 100%;
    padding: 15px;
    border: 5px solid #eee;
    background-color: white;
    display: flex;
}

.ajax-file-input__cropper {
    flex: 1;
}

.ajax-file-input__cropper-image-box {
    background-color: #eee;
    height: 100%;

    img {
        max-width: 100%;
        max-height: 100%;
        margin: auto;
        display: block;
    }
}

.ajax-file-input__cropper-buttons {
    text-align: center;
    padding: 10px;
    width: 120px;

    button {
        margin-bottom: 10px;
    }
}

.ajax-file-input__remove {
    display: none;
    position: absolute;
    font-size: 30px;
    width: 100%;
    top: 10px;
    left: 0px;
    bottom: 10px;
    border-radius: 10px;
    color: rgb(255, 255, 255);
    background-color: rgba(66, 66, 66, 0.2);
    text-align: center;

}